package org.lds.hotkey.console.remote.model.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;
import org.lds.hotkey.common.model.pojo.request.BaseCreateRequest;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class AppInstanceRegisterRequest extends BaseCreateRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long appId;


    /**
     * app名称
     */
    private String appName;


    /**
     * IP
     */
    private String ip;

    public void setIp(String ip) {
        this.ip = StringUtils.trimToNull(ip);
    }

    /**
     * 端口
     */
    private Integer port;

}
